import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useCourseStore = defineStore('course', () => {
  const course_id = ref('')
  const course_name = ref('')
  const setClazzId = (id) => {
    course_id.value = id
  }
  const setCourseName = (name) => {
    course_name.value = name
  }
  return {
    course_id,
    course_name,
    setClazzId,
    setCourseName
  }
})
